All Questions
4 questions
2votes
1answer
810views
Sum of Two Matrices
For a homework assignment, I was asked to do this problem. It worked, but it looks messy in my opinion. I want to know if this is the best way to accomplish this task, and if there can be any ...
2votes
1answer
4kviews
Swapping the diagonals of a matrix [closed]
I am required to write a simple matrix program and swap the diagonal. Given the input 1 2 3 4 5 6 7 8 9 After swapping the diagonal it should be ...
13votes
5answers
4kviews
Enter my Matrix
Here is my next Java assignment: create a Matrix class that can add and multiply two matrices together. I was given some code as a skeleton and then fleshed it out ...
3votes
2answers
540views
addMatrix() method
Can anyone review my addMatrix() method to see if I am following the instructions correctly? These are the instructions: This is a ...